package cn.weblog.api.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author lena
 * @since 2021-04-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)    //链式编程
public class User {

    private Integer userId;

    private String username;

    private String password="123456";

    private String sex;

    private String email;

    private LocalDateTime joinDate;

    private LocalDateTime lastTime;

    private Integer status=1;

    private String avatar="../static/img/default-head.jpg";

    private Integer deleted=0;

    //关联查询字段
    private Integer registAge;
    private Integer attention;
    private Integer fans;
    private Integer passage;
    private List<Catagory> catagoryName;


}
